#include once "tgfx.bi"
using tgfx
using tgfx.drawing

window.init(320,240,_8bit)
window.setTitle("Boxy")
'example from fb docs for the Draw command
'Move to (50,50) without drawing
plot "BM 50,50"

'Set drawing color to 2 (green)
plot "C2"

'Draw a box
plot "R50 D30 L50 U30"

'Move inside the box
plot "BM +1,1"

'Flood fill with color 1 (blue) up to border color 2
plot "P 1,2"
sleep
